package com.gopay.common.domain.cbrmb.remit;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

import com.gopay.common.domain.BaseEntity;

/**
 * 汇款拆分的辅助表
 * @author qld
 *
 */

@Entity
@Table(name = "CB_RMB_BATCH_REMIT_ASSIST")
public class CbRmbBatchRemitAssist extends BaseEntity {
   
    private static final long serialVersionUID = 5397626784953630361L;
   
    
    private String gopayOrderId;
    private String batchProcessStatus;
    private BigDecimal batchMerAmt;
    private BigDecimal batchTotalAmt;
    private String payCustId;
    private BigDecimal batchCount;


    private Date createdTs;
    private Date lastUpdTs;
    private int version;
    
    private String remark1;
    private String remark2;


    @Id
    @Column(name = "GOPAY_ORDER_ID", unique = true, nullable = false, length = 30)
    public String getGopayOrderId() {
        return this.gopayOrderId;
    }

    public void setGopayOrderId(String gopayOrderId) {
        this.gopayOrderId = gopayOrderId;
    }


    @Column(name = "PAY_CUST_ID", length = 10)
    public String getPayCustId() {
        return this.payCustId;
    }

    public void setPayCustId(String payCustId) {
        this.payCustId = payCustId;
    }

    @Column(name="BATCH_PROCESS_STATUS")
    public String getBatchProcessStatus() {
        return batchProcessStatus;
    }

    public void setBatchProcessStatus(String batchProcessStatus) {
        this.batchProcessStatus = batchProcessStatus;
    }
    
    @Column(name="BATCH_MER_AMT")
    public BigDecimal getBatchMerAmt() {
        return batchMerAmt;
    }

    public void setBatchMerAmt(BigDecimal batchMerAmt) {
        this.batchMerAmt = batchMerAmt;
    }
    @Column(name="BATCH_TOTAL_AMT")
    public BigDecimal getBatchTotalAmt() {
        return batchTotalAmt;
    }

    public void setBatchTotalAmt(BigDecimal batchTotalAmt) {
        this.batchTotalAmt = batchTotalAmt;
    }


    @Column(name="BATCH_COUNT")
    public BigDecimal getBatchCount() {
        return batchCount;
    }

    public void setBatchCount(BigDecimal batchCount) {
        this.batchCount = batchCount;
    }
   
    @Column(name = "CREATED_TS", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return this.createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    @Column(name = "LAST_UPD_TS", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return this.lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }


    
    @Version
    @Column(name = "VERSION", nullable = false, precision = 22, scale = 0)
    public int getVersion() {
        return this.version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    @Column(name = "REMARK1", length = 50)
    public String getRemark1() {
        return this.remark1;
    }

    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    @Column(name = "REMARK2", length = 50)
    public String getRemark2() {
        return this.remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }
    
}
